@echo off
set JAVA_HOME=C:\Users\EDY\jdk-17.0.15_windows-x64_bin\jdk-17.0.15
set PATH=%JAVA_HOME%\bin;%PATH%

echo Starting merchant backend...
cd spring-boot2
start "Merchant Backend" cmd /c "mvnw spring-boot:run"
cd ..

echo Starting user backend...
cd spring-boot-1
start "User Backend" cmd /c "mvnw spring-boot:run"
cd ..

echo Starting admin backend...
cd Spring-boot-vue
start "Admin Backend" cmd /c "mvnw spring-boot:run"
cd ..

echo All backend services are starting...
pause
